package cn.jark.unified.dispose.util;

import cn.jark.unified.dispose.model.Result;

/**
 * @author 雨一直夏灬(须知少年凌云志, 曾许人间第一流)
 * @since 2020-10-29
 */
public final class ResultUtils {

    private ResultUtils() {
    }

    public static <T> Result<T> success(T t) {
        Result<T> res = new Result<>(0, "success");
        res.setData(t);
        return res;
    }

    public static <T> Result<T> success() {
        return success(null);
    }

}
